package com.bjtu.ptsite.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 *
 * @author Zehao Wang, Junjie Zhang, Yutao Wei
 *
 */
@Data
@TableName("seeding_record")
@NoArgsConstructor
@AllArgsConstructor
public class SeedingRecord {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    @TableField
    private Long seedId;
    @TableField
    private int userId;
    @TableField
    private LocalDateTime startTime;
    @TableField
    private LocalDateTime lastReportTime;

    public SeedingRecord(Long seedId, int userId) {
        this.seedId = seedId;
        this.userId = userId;
    }
}